package com.foreverwin.mes.production.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.production.model.WorkDayRestTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;


@Repository
public interface WorkDayRestTimeMapper extends BaseMapper<WorkDayRestTime> {

    /**
     * 通过handle更新时间和更新人员
     *
     * @param handle
     * @param modifiedDateTime
     * @param updater
     */
    void updateWorkDayRestTime(@Param("handle") String handle, @Param("modifiedDateTime") Date modifiedDateTime, @Param("updater") String updater);

    /**
     * 查询工作日休息设定数据
     *
     * @param handle
     * @return
     */
    WorkDayRestTime selectForUpdateById(@Param("handle") String handle);

}